'''
continue、break和else
'''
list = [1, 2, 3, 4, 5]
for x in list:
    print(x)
    if x == 3:
        break
print("存在 3")

for y in list:
    if y > 2:
        continue
    print(y)
print("以上数字小于等于2")

for z in list:
    print(z)
else:
    print("循环结束")
